package ctn.service.inteface;

import ctn.hibernate.po.CtnUser;
import ctn.service.dto.CTNUserDTO;

public interface UserService {
	public int validateUserName(String username);
	
	public int validateUserEmail(String email);
	
	public CTNUserDTO saveUser(CTNUserDTO CTNUserDTO);
	
	public void updateUser(CTNUserDTO CTNUserDTO);
	
	public CTNUserDTO doLogin(CTNUserDTO CTNUserDTO);
	
	public CTNUserDTO forgetPass(CTNUserDTO CTNUserDTO);
	
	public CTNUserDTO resetPass(CTNUserDTO CTNUserDTO);
	
	public boolean validatePwd(String pwd,Long id);
	
	public void resetEmailOrName(CTNUserDTO user,String property);
	
	public CTNUserDTO getCTNUserDTOById(Long id);

	public CtnUser getCtnUser(CTNUserDTO uv1);

	public CtnUser getCtnUserByID(String userID);
}
